<?php
require_once 'constants.inc.php';
require_once "ARC2.php";

class Snapshots{

	var $uri;
	
	function __construct($uri)
	{
		$this->uri = $uri;
	}
	/**
	 * get_snapshots
	 *
	 * @return array
	 * @author Keith Alexander
	 **/
	public function get_snapshot_uris()
	{
		$parser = ARC2::getRDFXMLParser();
		$parser->parse($this->uri);
		$triples = $parser->getTriples();
		$uris = array();
		foreach($triples as $t)
		{
			if($t['p']=='http://schemas.talis.com/2006/bigfoot/configuration#snapshot') $uris[]=$t['o'];
		}
		return $uris;
	}
	
}

?>